/**
 * @Title: 替换空格
 * @Author 贾金博
 * @Package PACKAGE_NAME
 * @Date 2024/3/2 18:57
 * @description:
 */
class Solution2 {
    public String replaceSpaces(StringBuffer str) {
        String s = str.toString();
        String replace = s.replace(" ", "%20");
        return  replace;
    }
}